<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<h2>Credits list</h2>

<table style="width: 600px;">
    <tr>
        <td>
            id
        </td>
        <td>
            Businessman
        </td>
        <td>
            Amount
        </td>
        <td>
            Created
        </td>
        <td>
            Status
        </td>
        <td>
            
        </td>
    </tr>
    <c:forEach items="${credits}" var="credit">
        <tr>
            <td>
                ${credit.id}
            </td>
            <td>
                ${credit.getBusinessman().getTitle()}
            </td>
            <td>
                ${credit.amount}
            </td>
            <td>
                ${VoidHelper.date(credit.created)}
            </td>
            <td>
                ${credit.status}
            </td>
            <td>
                <a href="bank.htm?act=changestatus&id=${credit.id}&status=ok">Approve</a>
                <br/>
                <a href="bank.htm?act=changestatus&id=${credit.id}&status=refuse">Deny</a>
            </td>
        </tr>
    </c:forEach>
</table>